Skip to content

Conversation

ladamski
Copy link
Collaborator

@ladamski ladamski commented Oct 3, 2025

Task/Issue URL: https://app.asana.com/1/137249556945/project/1171671347221384/task/1210907475542624

Description

Initial support for https://app.asana.com/1/137249556945/project/1209805270658160/list/1209805324244987
Specific subtask for this PR: https://app.asana.com/1/137249556945/task/1210907475542626

Steps to test this PR

https://app.asana.com/1/137249556945/task/1209901985192016?focus=true using ".../Android/PixelDefinitions/" as the target directory where specified

Feature 1

  • [ ]
  • [ ]

UI changes

Before After
!(Upload before screenshot) (Upload after screenshot)

Lucas Adamski added 2 commits October 6, 2025 21:12
@ladamski ladamski marked this pull request as ready for review October 7, 2025 20:08
@ladamski ladamski requested a review from nshuba October 7, 2025 20:08
Comment on lines 43 to 64
# Lint step for push (fail on error), for PRs run fix instead
- name: Check or Fix lint
id: lint
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
npm run lint.fix || true
else
npm run lint
fi
working-directory: PixelDefinitions

# Commit and push changes if lint.fix was run and made changes
- name: Commit and push linter fixes (PRs only)
if: github.event_name == 'pull_request'
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add PixelDefinitions/
if ! git diff --cached --quiet; then
git commit -m "chore: auto-fix lint errors"
git push
fi
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's check with the Android team if they are ok with automated commits. Windows opted into this, but Apple preferred a simple diff output on error: https://app.asana.com/1/137249556945/project/414709148257752/task/1210957466937460?focus=true

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bringing my comment:

  • lint should always run in PRs and develop and should be added to our pre-commit hook (this las bit needs added).
  • lint-fix should be run manually by the owner.
  • No automated commits anywhere.

{
"epbf_android": {
"description": "User sent broken site report",
"owners": [],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will fail validation with the latest schema release (owners should not be empty). Maybe Kate can be the owner for Android breakage pixels? Let's ask her in Asana.

Lucas Adamski added 2 commits October 8, 2025 09:37
@ladamski ladamski requested a review from cmonfortep October 9, 2025 05:43
@@ -0,0 +1,28 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have a package.json, do we really need a second one?


on:
push:
branches: [develop]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not needed, validation should only run on PR commits and not when the PR is merged. The PR won’t be merged if there are lint issues.

if [[ "${{ github.event_name }}" == "pull_request" ]]; then
npm run lint.fix || true
else
npm run lint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do this as part of our https://github.com/duckduckgo/Android/blob/develop/.github/workflows/ci.yml that runs on each PR merge. That would also prevent this workflow from running in parallel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants